<!--
 * @Autor: zjp
 * @Date: 2021-06-19 14:48:51
 * @LastEditors: zjp
 * @LastEditTime: 2021-06-23 08:53:49
 * @FilePath: \Mics3.0_3DViewer_WEB\src\components\common\MicsTable.vue
 * @Description: 
-->
<script>
// MICS Studio 通用表格函数式组件
import { h, resolveComponent } from "vue";

export default {
  name: "MicsTable",
  setup(props, { slots, attrs, emit, children }) {
    const ElTable = resolveComponent("ElTable");
    const NoData = resolveComponent("NoData");
    // 返回渲染函数
    return () =>
      h(
        ElTable,
        {
          ...attrs,
        },
        {
          default: (props) => {
            return slots.default(props)
          },
          empty: () => {
            return h(NoData, {
              tips: "暂无数据"
            })
          }
          // default: (props) => h('span', 888881)
        }
      );
  },
};
</script>

<style lang="less" scoped>


</style>
